package com.tuozixuan.camel.header;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class HeaderDemoRoute extends RouteBuilder {

	@Override
	public void configure() {
	    
	    from("timer:firedOnceTimer?repeatCount=1")
	    	.recipientList(header("myHeader"))
	        .to("log:HeaderDemoLog");
	}

}
